package com.hgyc.mom.common.enums;

/**
 * 单据类型字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @since 2025-10-08 10:22:19
 * @version 1.0
 **/
public enum SysOrderTypeEnum {
    RECEIVING_ORDER("receiving_order", "来料单"),
    MATERIAL_REQUEST("material_request", "领料单"),
    MATERIAL_RETURN("material_return", "退料单"),
    STOCK_IN("stock_in", "入库单"),
    STOCK_OUT("stock_out", "出库单"),
    WAREHOUSE_TRANSFER("warehouse_transfer", "调拨单"),
    WORK_ORDER("work_order", "工单"),
    DISPATCH_ORDER("dispatch_order", "派工单"),
    REPORT_ORDER("report_order", "报工单"),
    COMPLETION_ORDER("completion_order", "完工单"),
    SHIPPING_ORDER("shipping_order", "发货单"),
    RETURN_ORDER("return_order", "退货单")
    ;

    private final String value;
    private final String label;

    SysOrderTypeEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static SysOrderTypeEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (SysOrderTypeEnum item : SysOrderTypeEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}

